In Layout: <%= yield_content(:from_template).chomp.strip %>

In Template:
<%= yield %>